@prefix-cls: welcome;

@scroll-horizontal-width: 5px;
@scroll-vertical-height: 5px;
@scroll-background: rgba(0, 0, 0, 0.2);
@scroll-background-hover: rgba(0, 0, 0, 0.3);

.@{prefix-cls} {
  &-layout {
    width: 100%;
    height: 100%;
    overflow: hidden;

    .ant-spin-nested-loading {
      width: 100%;
      height: 100%;
      overflow: hidden;
    }

    .ant-spin-container {
      width: 100%;
      height: 100%;
      overflow: hidden;
      display: flex;
      flex-direction: column;
    }
  }

  &-header {
    width: 100%;
    overflow: hidden;
    display: flex;
    padding: 8px 0px;
  }

  &-body {
    flex: auto;
    overflow: hidden;

    &-grid {
      width: 100%;
      height: 100%;
      overflow: hidden;

      .react-grid-layout {
        width: 100%;
      }
    }
  }

  &-st {
    &-box {
      flex: 1;
      overflow-x: auto;
      overflow-y: hidden;
      white-space: nowrap;
      padding: 8px;
    }

    &-box::-webkit-scrollbar {
      width: @scroll-horizontal-width;
      height: @scroll-vertical-height;
    }

    &-box::-webkit-scrollbar-thumb {
      -webkit-transition: all 0.25s;
      background: @scroll-background;
      transition: all 0.25s;
      border-radius: 0px;
    }

    &-box::-webkit-scrollbar-thumb:hover {
      background: @scroll-background-hover;
    }

    &-child {
      width: 185px;
      height: 100px;
      border-radius: 5px;
      background: linear-gradient(90deg, #42d79b, #a6e25f9c);
      display: inline-block;
      transition: 500ms;
      cursor: pointer;
    }

    &-child:hover {
      box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.5);
    }

    &-set {
      width: 185px;
      height: 100px;
      border-radius: 5px;
      background: #1890ff;
      display: inline-block;
      overflow: hidden;
      cursor: pointer;

      &-icon {
        width: 100%;
        height: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 40px;
        color: #000000;
        cursor: pointer;
      }

      &-box {
        width: 100%;
        height: 100%;
        display: none;
        font-size: 40px;
        background: rgba(0, 0, 0, 0.35);
        cursor: pointer;
        grid-template-columns: repeat(2, 50%);
        grid-template-rows: repeat(2, 50%);
      }
    }

    &-set:hover .welcome-st-set-icon {
      display: none;
    }

    &-set:hover .welcome-st-set-box {
      display: grid;
    }
  }

  &-icon {
    &-box {
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 24px;
      font-weight: bold;
    }
  }

  &-color {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;

    &-box {
      width: 185px;
      height: 100px;
      border-radius: 5px;
      margin-left: 8px;
      margin-right: 8px;
      background: linear-gradient(90deg, #42d79b, #a6e25f);
      display: flex;
      flex-direction: column;
    }

    &-icon {
      flex: auto;
      display: flex;
      align-items: center;
      justify-content: center;
    }

    &-title {
      width: 100%;
      padding: 8px 0px;
      text-align: center;
    }
  }
}

.wl-pop-box {
  width: 100%;
  height: 32px;
  background: #ffffff;
  padding: 8px;
  border: 1px solid #d9d9d9;
}

.wl-pop-child {
  width: 100%;
  height: 100%;
}

.wl-popover-color {
  .ant-popover-inner-content {
    padding: 0px;
  }
}
